//
//  LookAroundTabBarViewController.m
//  拉勾7.17
//
//  Created by dllo on 16/7/19.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "LookAroundTabBarViewController.h"
#import "HomePageViewController.h"
#import "MessagerViewController.h"
#import "MyselfViewController.h"
#import "DiscoverViewController.h"
@interface LookAroundTabBarViewController ()

@end

@implementation LookAroundTabBarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    // 初始化一个tabBar控制器
     HomePageViewController *homePageVC = [[HomePageViewController alloc] init];
     // 首页
     homePageVC.view.backgroundColor = [UIColor brownColor];
     homePageVC.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"首页" image:[[UIImage imageNamed:@"icon_homePageblack"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] selectedImage:[[UIImage imageNamed:@"icon_homePage@32x"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
     [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:COLOR1, NSForegroundColorAttributeName, [UIFont fontWithName:@"Helvetica" size:12.f], NSFontAttributeName, nil] forState:UIControlStateSelected];
     // 消息
     MessagerViewController *messagerVC = [MessagerViewController new];
     messagerVC.view.backgroundColor = [UIColor whiteColor];
     messagerVC.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"消息" image:[[UIImage imageNamed:@"icon_messger&&Black$$Unselected@32x"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] selectedImage:[[UIImage imageNamed:@"icon_messagerSelected@32x"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
     // 发现
     DiscoverViewController *discoverVC = [DiscoverViewController new];
     discoverVC.view.backgroundColor = [UIColor blueColor];
     discoverVC.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"发现" image:[[UIImage imageNamed:@"icon_discoverblack"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] selectedImage:[[UIImage imageNamed:@"icon_discover"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
     // 我
     MyselfViewController *myselfVC = [MyselfViewController new];
     myselfVC.view.backgroundColor = [UIColor darkGrayColor];
     myselfVC.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"我" image:[[UIImage imageNamed:@"icon_myselfblack"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] selectedImage:[[UIImage imageNamed:@"icon_myself"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
     self.viewControllers = @[homePageVC,messagerVC,discoverVC,myselfVC];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
